package com.ruoyi.quartz.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.quartz.mapper.CgImportMainIntermediateMapper;
import com.ruoyi.quartz.domain.CgImportMainIntermediate;
import com.ruoyi.quartz.service.ICgImportMainIntermediateService;

/**
 * CgImportMainIntermediateService业务层处理
 * 
 * @author SYF
 * @date 2025-04-27
 */
@Service
public class CgImportMainIntermediateServiceImpl implements ICgImportMainIntermediateService 
{
    @Autowired
    private CgImportMainIntermediateMapper cgImportMainIntermediateMapper;

    /**
     * 查询CgImportMainIntermediate列表
     * 
     * @param cgImportMainIntermediate CgImportMainIntermediate
     * @return CgImportMainIntermediate
     */
    @Override
    public List<CgImportMainIntermediate> selectCgImportMainIntermediateList(CgImportMainIntermediate cgImportMainIntermediate)
    {
        return cgImportMainIntermediateMapper.selectCgImportMainIntermediateList(cgImportMainIntermediate);
    }

    /**
     * 新增CgImportMainIntermediate
     * 
     * @param cgImportMainIntermediate CgImportMainIntermediate
     * @return 结果
     */
    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public int insertCgImportMainIntermediate(CgImportMainIntermediate cgImportMainIntermediate)
    {
        return cgImportMainIntermediateMapper.insertCgImportMainIntermediate(cgImportMainIntermediate);
    }

    /**
     * 修改CgImportMainIntermediate
     * 
     * @param cgImportMainIntermediate CgImportMainIntermediate
     * @return 结果
     */
    @Override
    public int updateCgImportMainIntermediate(CgImportMainIntermediate cgImportMainIntermediate)
    {
        return cgImportMainIntermediateMapper.updateCgImportMainIntermediate(cgImportMainIntermediate);
    }

}
